package com.sunjy.controller;

import com.sunjy.services.Services1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sunjy on 2018/9/5.
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private Services1 services1;

    @RequestMapping(value = "/test1", method = RequestMethod.GET)
    public void test1() throws Exception {
        services1.test();
        System.out.println("testtest1");
    }

}
